package br.com.ffm.mtfw.classes;

import br.com.ffm.mtfw.interfaces.Tenantable;

/**
 * Class that associates a Tenantable class to a attributeName it's value.
 * @author matheus
 */
public class ColumnValue {

    private Tenantable object;
    private String attributeName;
    private Object attributeValue;

    public ColumnValue(String attributeName, Object attributeValue) {
        this.attributeName = attributeName;
        this.attributeValue = attributeValue;
    }

    public ColumnValue(Tenantable object, String attributeName, Object attributeValue) {
        this.object = object;
        this.attributeName = attributeName;
        this.attributeValue = attributeValue;
    }

    public Object getTenantable() {
        return object;
    }

    public String getAttributeName() {
        return attributeName;
    }

    public Object getAttributeValue() {
        return attributeValue;
    }
}
